/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.aptech.session;

import com.aptech.entity.RealEstate;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Tuan Nguyen
 */
@Local
public interface RealEstateFacadeLocal {

    void create(RealEstate realEstate);

    void edit(RealEstate realEstate);

    void remove(RealEstate realEstate);

    RealEstate find(Object id);

    List<RealEstate> findAll();

    List<RealEstate> findRange(int[] range);

    int count();

    java.util.List<RealEstate> selectTop(String name);

    java.util.List<RealEstate> selectByType(String name);

    java.util.List<RealEstate> findHouse(int realEstateTypeID, int cityID, String location, double price, double priceTo, double deposit, int bedrooms, int bathrooms, int houseTypeID);

    String sqlSearch(int realEstateTypeID, int cityID, String location, double price, double priceTo, double deposit, int bedrooms, int bathrooms, int houseTypeID);

    java.util.List<RealEstate> SearchRealEstate(String field, Object value);

    
}
